package com.xiaomi.service;

import com.xiaomi.pojo.Address;

import java.util.List;

/**
 * @ClassName AddressService
 * @Author xiao宋
 * @Date 20:32  2022/9/15
 * @Version 1.0
 * @Description TODO
 */
public interface AddressService {
    /**
     * 通过用户 ID 得到用户的地址列表
     * @param uid
     * @return
     */
    List<Address> getAddrList(int uid);

    /**
     * 添加地址
     * @param address
     */
    void addAddress(Address address);

    /**
     * 修改地址
     * @param address
     */
    void updateAddress(Address address);

    void setDefaultAddress(int uid,String aId);

    void deleteAddress(int id);
}
